package com.cloudkinto.service.finance;

import com.cloudkinto.entity.RechargeRecordDo;
import com.baomidou.mybatisplus.extension.service.IService;

import com.cloudkinto.common.web.PageResult;
import com.cloudkinto.common.web.SingleResult;
import com.cloudkinto.service.finance.vo.InvoiceRecordPatchReq;
import com.cloudkinto.service.finance.vo.RechargeAddReq;
import com.cloudkinto.service.finance.vo.RechargeRecordRes;
import com.cloudkinto.service.finance.vo.RechargeRes;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  service接口
 * </p>
 * @author ding
 * @since 2020-06-10
 */
public interface RechargeRecordService extends IService<RechargeRecordDo> {

    SingleResult addInit(Long companyId);

    Object add(RechargeAddReq rechargeAddReq, Long cId, Long userId);

    void addRechargeInvoice(InvoiceRecordPatchReq req, Long companyId, Long userId);

    SingleResult updateInit(Long id);

    Object update(Object updateVo, Long userId);

    int delete(Long id, Long userId);

    Object detail(Long id);

    SingleResult pageInit();

    List<RechargeRes> getList(Map<String, String> map);

    PageResult getListPage(Map<String, String> map);
}
